//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using CommunityServer;
using CommunityServer.Components;
using CommunityServer.Files.Components;
using System;

namespace CommunityServer.Files.Controls
{
	public class ViewFolder : FileGalleryTemplatedWebControl
	{
		protected override void AttachChildControls()
		{
			// no need to attach to any child controls
			// they are all self controlling

			// Access check
            CSContext context = CSContext.Current;
            Folder folder = Folders.GetFolder(context.ApplicationKey);
			Permissions.AccessCheck( folder, Permission.View, context.User );

//            if(folder.IsPrivate)
//            {
//                UsersOnline.PrivateLocation();
//            }
//            else
//            {
//                UsersOnline.SetLocation(folder.Name);
//            }
		}
	}
}
